package com.demo.mapper;

import java.util.List;

import com.demo.model.Canvas;

public interface CanvasMapper {
    int deleteByPrimaryKey(String id);

    int insert(Canvas record);

    int insertSelective(Canvas record);

    Canvas selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Canvas record);

    int updateByPrimaryKey(Canvas record);
    /**
     * 根据拥有者查询画布集合
     * @param userId
     * @return
     */
	List<Canvas> findByOwner(String userId);
	/**
	 * 获取个人最大的排序
	 * @param c
	 * @return
	 */
	int getMaxSort(String userId);
}